Determine if folder is a Project folder

I am writing a script that will need to be run from a Project folder.  I've looked through the manual, but I don't see anything like an isProject function that would tell me if the folder I'm in is a project.  Is there some way to determine if the user is currently within a Project folder as opposed to a regular folder?

 

Chris


Christopher Cote - Mon Apr 08 12:48:40 EDT 2019

Re: Determine if folder is a Project folder
llandale - Mon Apr 08 15:52:11 EDT 2019

Folder fCurr = current

string NameFold = nullName(fCurr)

Project pFold = project(NameFold)

print NameFold "\tIs a project: " (!null pFold) "\n"

 

-Louie

Re: Determine if folder is a Project folder
PekkaMakinen - Mon Apr 08 23:37:57 EDT 2019

Also if you are accessing your Projects by hierarchy items then note that Item has type and one of those is "Project"

Re: Determine if folder is a Project folder
Christopher Cote - Tue Apr 09 08:59:59 EDT 2019

Thanks guys.  This is a big help.